<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="erp" uri="/erp-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML>
<html>
<head>
	<base href="<%=basePath%>">
</head>
<body>
	<script>
	$(function() {
		init_show_page();
	});
	</script>
	<h1>表单详情</h1>
	<table style="margin: 1em 0;border-collapse: collapse;width: 100%">
		<tr>
			<td>标题：</td>
			<td><s:textfield name="title" cssClass="unread" ></s:textfield></td>
		</tr>
		<tr>
			<td>请假人：</td>
			<td><s:textfield name="applicant.name" cssClass="unread" ></s:textfield></td>
		</tr>
		<tr>
			<td>请假时间：</td>
			<td><s:textfield name="leaveTime" cssClass="unread"  ></s:textfield></td>
		</tr>
		<tr>
			<td>共计：</td>
			<td>
				<s:textfield name="dayNumber" cssClass="unread" ></s:textfield>天 
				<s:textfield name="hourNumber" cssClass="unread" ></s:textfield>小时
			</td>
		</tr>
		<tr>
			<td>请假原因：</td>
			<td><s:textarea rows="2" cols="30" name="reason" cssClass="unread" ></s:textarea></td>
		</tr>
		<tr>
			<td>工作安排：</td>
			<td><s:textarea rows="2" cols="30" name="note" cssClass="unread" ></s:textarea></td>
		</tr>
	</table>
	<div class="list_container" style="margin: 0;">
	<h1>审核记录</h1>
	<table class="ui-widget ui-widget-content" >
		<thead>
			<tr class="ui-widget-header ">
				<th>任务编号</th>
				<th>审核人</th>
				<th>审核时间</th>
				<th>审核结果</th>
				<th>审核意见</th>
			</tr>
		</thead>
		<tbody>
			<s:iterator value="%{#request.examineList}">
				<tr>
					<td>${taskId}</td>
					<td>${auditor.name}</td>
					<td><s:date name="%{examineTime}" format="yyyy-MM-dd HH:mm" /></td>
					<td>
						<s:if test="%{opinion==0}">未查看</s:if>
						<s:elseif test="%{opinion==1}">处理中</s:elseif>
						<s:elseif test="%{opinion==2}">通过</s:elseif>
						<s:elseif test="%{opinion==3}">否决</s:elseif>
					</td>
					<td>${note}</td>
				</tr>
			</s:iterator>
		</tbody>
	</table>
	</div>
</body>
</html>
